<h1>Subcategory - Edit</h1>
<form action="<?php echo url_for('@subcategory_edit_save') ?>" method="post">
    <input type="hidden" name="uid" value="<?php echo $object->getId() ?>" />
<table>
    <tr>
        <td>Description Spanish</td>
        <td><input type="text" name="udesc_es" value="<?php echo $object->getDescription('es') ?>" /></td>
    </tr>
    <tr>
        <td>Description English</td>
        <td><input type="text" name="udesc_en" value="<?php echo $object->getDescription('en') ?>" /></td>
    </tr>
    <tr>
        <td>Category</td>
        <td>
            <select name="ucategory">
                <option value=""></option>
                <?php foreach($categories as $category){ ?>
                <option value="<?php echo $category->getId() ?>" <?php if($category->getId()==$object->getCategoryId()){echo 'selected';} ?>>
                    <?php echo $category->getDescription() ?></option>
                <?php } ?>
            </select>
        </td>
    </tr>
    <tr>
        <td>Flags</td>
        <td><?php echo $object->getFlags() ?></td>
    </tr>
    <tr>
        <td colspan="2" align="center">
            <input type="submit" value="Save Changes" />
        </td>
    </tr>
</table>
</form>